//
//  Girl.h
//  OC08_Category_Extension_Protocol
//
//  Created by dllo on 16/6/1.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import <Foundation/Foundation.h>
#warning 1. 声明协议
@protocol GirlDelegate <NSObject>

-(void)getMoney;

@optional //可实现也可不实现
-(void)cooking;
-(void)wash;                                                                                                                                  

@end



@interface Girl : NSObject
#warning 2. 设置代理人属性
//代理人属性通常使用assign语义特性.
//id<GirlDelegate>签订GirlDelegate协议的任意类型.
@property (nonatomic,assign) id<GirlDelegate> delgate;



@property (nonatomic,retain)NSString *name;
@property (nonatomic,assign)NSInteger age;



-(void)getMarry;
@end
